package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.PlayChapterDate;
import com.atguigu.edu.publisher.mapper.PlayStatsMapper;
import com.atguigu.edu.publisher.service.PlayStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlayStatsServiceImpl implements PlayStatsService {

    @Autowired
    PlayStatsMapper playStatsMapper;

    @Override
    public List<PlayChapterDate> getStatsDate(String date) {
        return playStatsMapper.selectChapterDate(date);
    }
}
